-- GENERATED SPELL FOR [Daggercap Hawk] --


function spell0_24172(pUnit, Event) --@Dive,n/a--
pUnit:FullCastSpellOnTarget(43187,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24172', 612, 1)
end

function Sorts_24172(pUnit, Event)
local choix_sorts_24172 = math.random(0, 0)
if choix_sorts_24172 == 0 then
pUnit:RegisterEvent('spell0_24172', 1, 1)
end
end

function mob24172_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24172', math.random(1500, 3000), 1)
end

function mob24172_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24172_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24172_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24172, 1, 'mob24172_Action')
RegisterUnitEvent(24172, 2, 'mob24172_Leave')
RegisterUnitEvent(24172, 3, 'mob24172_Kill')
RegisterUnitEvent(24172, 4, 'mob24172_Die')
